home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1996 #3
/
AmigaPlus_CD-ROM-EXTRA_Nr.3.bin
/
aminet-spiele
/
zwei spieler
/
hf disk3
/
rämpytys
/
rämpytys.amos
/
rämpytys.amosSourceCode
Wrap
AMOS Source Code
|
1993-03-08
|
3KB
|
158 lines
' 31.5.95
PALKKI=100
KORKEUS=225
Auto View Off
If Prg Under
Bgrab 11
Else
Load "T:Pankki.abk",11
End If
NAPPIS=Peek(Start(11))
NAPPIS2=Peek(Start(11)+5)
MUSAT=Peek(Start(11)+1)
Load "HF3:R�mpytys/R�mpytys.Abk"
Load "HF3:R�mpytys/Sounds.Abk",5
Load "Hf3:r�mpytys/R�mpytysTausta.Abk",20
Unpack 20 To 0
Hide
Erase 20
'Double Buffer
Update
View
Bob 2,275*2,KORKEUS,2
Bob 3,55*2,KORKEUS,2
If MUSAT
Track Load "hf3:R�mpytys/R�mpytysModule",7
End If
Sam Bank 5
Sam Play 2
Wait 550
If MUSAT
Track Play 7
End If
DUUI:
If Bob Col(1) and Col(2) Then Goto NONEVER
If Bob Col(1) and Col(3) Then Goto NOOKEI
Bob 1,2*(PALKKI+59),KORKEUS,1
Wait Vbl
If NAPPIS2=2
TIKKU=0
A$=Inkey$
K=Key Shift
' Up
For A=7 To 15 Step 2
If Peek(Start(11)+A)<$80
If Key State(Peek(Start(11)+A))
Bset 2,TIKKU
End If
Else
If Peek(Start(11)+A)-$80=K
Bset 2,TIKKU
End If
End If
Next A
If PELAAJA2=0 and Btst(2,TIKKU)=0
Dec PALKKI
PELAAJA2=1
End If
If PELAAJA2=1 and Btst(2,TIKKU)
Add PALKKI,-2
PELAAJA2=0
End If
Else
TIKKU=Joy(NAPPIS2)
If PELAAJA2=0 and Btst(2,TIKKU) or PELAAJA2=1 and Btst(3,TIKKU)
Add PALKKI,-2
Bchg 0,PELAAJA2
End If
End If
If NAPPIS=2
TIKKU=0
A$=Inkey$
K=Key Shift
' Up
For A=6 To 14 Step 2
If Peek(Start(11)+A)<$80
If Key State(Peek(Start(11)+A))
Bset 2,TIKKU
End If
Else
If Peek(Start(11)+A)-$80=K
Bset 2,TIKKU
End If
End If
Next A
If PELAAJA1=0 and Btst(2,TIKKU)=0
Inc PALKKI
PELAAJA1=1
End If
If PELAAJA1=1 and Btst(2,TIKKU)
Add PALKKI,2
PELAAJA1=0
End If
Else
TIKKU=Joy(NAPPIS)
If PELAAJA1=0 and Btst(2,TIKKU) or PELAAJA1=1 and Btst(3,TIKKU)
Add PALKKI,2
Bchg 0,PELAAJA1
End If
End If
If Inkey$<>""
If Key State(25)=-1
While Key State(25)=-1 : Wend
While Key State(25)<>-1 : Wend
While Key State(25)=-1 : Wend
End If
If Key State(2)
Add NAPPIS2,1,0 To 2
While Key State(2) : Wend
End If
If Key State(1)
Add NAPPIS,1,0 To 2
While Key State(1) : Wend
End If
If Key State(94) and DELAY>1 : Dec DELAY : While Key State(94)=-1 : Wend : End If
If Key State(74) and DELAY<15 : Inc DELAY : While Key State(74)=-1 : Wend : End If
If Key State(55)
If MUSAT
Erase 7
Else
Track Load "hf3:R�mpytys/R�mpytysModule",7
Track Play 7
End If
Bchg 0,MUSAT
While Key State(55)=-1 : Wend
End If
End If
Goto DUUI
NONEVER:
If MUSAT Then Erase 7
Sam Play 1
Wait 180
Poke Start(11)+2,0
Goto JEES
NOOKEI:
Poke Start(11)+2,1
Fade 10
Wait 130
JEES:
Screen Close 0
If Prg Under
Poke Start(11),NAPPIS
Poke Start(11)+5,NAPPIS2
Poke Start(11)+1,MUSAT
Bsend 11
End If
Erase All
End